package com.nyist.zk.dao;

import com.nyist.zk.entities.Admin;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminDao {

    Admin getAdminByIdAndPassword(@Param("a_id")Integer a_id, @Param("a_password")String a_password);

    List<Admin> findAllAdmin();

    Admin findByIdAdmin(Integer a_id);

    void insertAdmin(Admin admin);

    void deleteByIdAdmin(Integer a_id);

    void updateAdmin(Admin admin);
}
